﻿using System;

namespace LFSRecord2.Model
{
    public static class CustomDoubleEase
    {
        public const double NoEase = 1 / 3.0d;
        public const double DefaultOutValue = 0.0d;
        public const double DefaultInValue = 0.0d;

        public static double EasingCore(double normTime, double easeOut, double easeIn)
        {
            return 3 * Math.Pow(1 - normTime, 2) * normTime * easeOut +
                   3 * (1 - normTime) * Math.Pow(normTime, 2) * (1 - easeIn) +
                   Math.Pow(normTime, 3);
        }
    }
}
